<template>
  <div class="wrapper wrapper-content animated fadeInRight v-cloak" v-cloak>
    <div class="row">
        <div class="form col-md-12">
          <div class="clearfix "></div>
          <div class="col-md-6">
                <div class="form-group clearfix">
                    <label class="control-label">id：</label>
                    <div class="col-md-12 form-control">
                        {{item.id}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">考核指标名称：</label>
                    <div class="col-md-12 form-control">
                        {{item.name}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">考核范围(1当前行政区划；2指定河道）：</label>
                    <div class="col-md-12 form-control">
                        {{item.scope}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">考核河道名称：</label>
                    <div class="col-md-12 form-control">
                        {{item.riverId}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">考核周期(1按年份；2按季度；3按月份）：</label>
                    <div class="col-md-12 form-control">
                        {{item.period}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">指标有效起始时间：</label>
                    <div class="col-md-12 form-control">
                        {{item.startDate | date('yyyy-MM-dd HH:mm:ss')}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">指标有效结束时间：</label>
                    <div class="col-md-12 form-control">
                        {{item.endDate | date('yyyy-MM-dd HH:mm:ss')}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">指标考核类型(1河长考核；2政绩考核；3巡查考核；4履职考核)：</label>
                    <div class="col-md-12 form-control">
                        {{item.examineType}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">指标集类型(1年度考核；2季度考核；3月度考核；4系统自动考核)：</label>
                    <div class="col-md-12 form-control">
                        {{item.collectType}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">系统自动考核占比：</label>
                    <div class="col-md-12 form-control">
                        {{item.autoScale}}
                    </div>
                </div>
          </div>
          <div class="col-md-6">
                <div class="form-group clearfix">
                    <label class="control-label">人工考核占比：</label>
                    <div class="col-md-12 form-control">
                        {{item.factitiousScale}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">达标分：</label>
                    <div class="col-md-12 form-control">
                        {{item.passScore}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">考核总分：</label>
                    <div class="col-md-12 form-control">
                        {{item.totalScore}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">备注：</label>
                    <div class="col-md-12 form-control">
                        {{item.memo}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">删除标记：</label>
                    <div class="col-md-12 form-control">
                        {{item.delFlag}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">建立者id：</label>
                    <div class="col-md-12 form-control">
                        {{item.createId}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">更新时间：</label>
                    <div class="col-md-12 form-control">
                        {{item.dateUpdated | date('yyyy-MM-dd HH:mm:ss')}}
                    </div>
                </div>
                <div class="form-group clearfix">
                    <label class="control-label">创建时间：</label>
                    <div class="col-md-12 form-control">
                        {{item.dateCreated | date('yyyy-MM-dd HH:mm:ss')}}
                    </div>
                </div>
          </div>
          <div class="clearfix "></div>
          <div class="col-12 text-center" style="height: 50px;">
            <div>
              <a @click="lbox.closeMyBoxLayer()" class="btn btn-danger" href="javascript:">返回</a>
            </div>
          </div>
        </div>
    </div>
  </div>
</template>
<script type="text/javascript">
  import '@/assets/css/style.css'

  import axios from 'axios'
  import {apiUtil, site} from '@/assets/js/boss'

  export default {
    data() {
      return {
        item: {}
      }
    },
    mounted() {
      let that = window.$vueApp = this;
      document.getElementsByTagName('body')[0].className = 'fixed-sidebar full-height-layout';
      that.staff.init(function () {
        axios.get(site.examineTarget.info + sessionStorage.getItem(site.examineTarget.info), {}).then(function (response) {
          const result = response.data;
          if (result.code === 0) {
            that.item = result.data;
          } else {
            alert(result.message);
          }
        });
      });
    },
    methods: {}
  }
</script>
